package com.bj58.ecdata.mailreport.db;

import com.bj58.groupbuy.util.PathUtil;

public enum DBConfig {
//	db_15_zhaopin("srcconnpool_infobright_zhaopin.properties",19),
	db_config("db_config.properties",0,"mysql"),
	
	db_manage("srcconnpool_bi_sys.properties",1,"mysql"),
	
	db_online_revenue("online_revenue.properties",16,"mysql"),
	
	db_data_ershou_133("db_ershou.properties",32,"mysql"),
	
	db_data_bi_131("data_bi_131.properties",43,"mysql"),
	
	db_data_app_94("data_app_94.properties",38,"mysql"),
	
	db_data_ganji_94("data_ganji_94.properties",10,"mysql"),
	
//	db_data_zhaopin("db_zhaopin.properties",41,"mysql"),
//	db_26_data_bi("srcconnpool_infobright_26_data_bi.properties",39,"mysql"),
//	db_data_info("data_info.properties",37,"mysql"),
//	db_101_data_app("srcconnpool_infobright_101_data_app.properties",46,"mysql");
		
	db_hive_middle("hive_middle.properties",44,"hive");
	
//	db_hive_detail("hive_detail.properties",45,"hive");
	
	DBConfig(String configPath,int intType,String dbType){
		this.configPath =  PathUtil.getWFNamespaceFolder()+"/"+configPath;
		this.intType = intType;
		this.dbType = dbType;
	}
	
	public String getConfigPath() {
		return configPath;
	}

	public int getIntType() {
		return intType;
	}

	public String getDbType() {
		return dbType;
	}

	/* 配置文件路径 */
	private final String configPath;
	/* 整数编号，与数据库里的对应  */
	private final int intType;
	/* 数据库类型:mysql,hive  */
	private final String dbType;
}
